@extends('app')

@section('content')
    @component('form.form')
        @include('form.hidden',['name'=>'detail_id','val' => $detail_id??''])
        @include('form.hidden',['name'=>'pid','val' => $model->pid??$pid])
        @include('form.hidden',['name'=>'version_id','val' => $model->version_id??$version_id])

        @include('form.input',[
                'label' => '目录名称',
                'name'  => 'name',
                'first' => '顶级目录',
                'val'   => $model->name??'',
            ])

        @include('form.tinymce',[
                'label'     => '文档内容',
                'name'      => 'content',
                'height'    => '650',
                'content'   => $model->docDetail->content??''
            ])

        @include('form.submit',['reload'=>'parent.location.href="/doc/info/index?version_id='.($model->version_id??$version_id).'&list_id="+data.data.id;'])
    @endcomponent
@endsection
